Note that, in this example, sum must be initialized to an explicit floating-point value; otherwise, all the subsequent computations will be done using integer arithmetic. 注意,在本例中,sum必须被初始化为一个显式的浮点值;否则,所有后续计算都将使用整数运算计算。
Floating-Point literals may also be represented using exponential notation: a real number followed by the letter e ( or E), followed by an optional plus or minus sign, followed by an integer exponent. 此外,还可以使用指数记数法表示浮点型直接量,即实数后跟随字母e或E,后面加上正负号,其后再加一个整型指数。
Data type is neither floating-point nor integer. 数据类型既不是浮点型也不是整型。
As a rule of thumb, floating-point is about2x slower than integer on Android devices. 根据经验,在Android设备上浮点型要比整型慢两倍。
This reports the results of an application-specific benchmark, expressed as number of floating-point and integer operations per CPU second. 该函数将上报应用程序指定的基准测试值,参数分别为每CPU秒可执行的浮点和整数操作数。
In the section on wavelet transform, it researches the compression algorithm of the region of interest of hyperspectral images and three-dimensional medical images based on two different transforming forms of floating-point distortion based on floating-point and integer distortion based on integer. 针对小波变换部分,分别深入研究了基于浮点的浮点失真和基于整型的整型失真两种不同变换方法的超光谱图像和三维医学图像感兴趣区域压缩编码算法。
In the process of rendering, it needs a large quantity of floating-point calculation and integer calculation. The time of rendering using normal PC is unendurable and the huge data to handle makes it worse. 在渲染过程中,需要进行大量的浮点运算和整数运算,用普通PC机渲染所需时间往往让人难以忍受,而且庞大的数据处理也使得32位计算在架构上成为了一个瓶颈。